<?php
class Welcome extends CI_Controller{  
    function __construct() {
        $this->data['title'] = 'Welcome to my website';
        
        parent::__construct();
    }
    
    public function index(){               
        $this->load->model('site_info');
        $title = $this->site_info->getSiteTitle();
        $this->data['title'] = $title;
        
        $this->load->view('welcome/header', $this->data);
        $this->load->view('welcome/main');
        $this->load->view('welcome/footer');
    }
}
?>
